package com.yzlshdg;

import javafx.application.Application;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;



/**
 * SpringBoot项目
 */

@SpringBootApplication                        //实现CommandLineRunner接口
public class SpringBootCommandLineRunnerApplication implements CommandLineRunner {




    //改造main方法
    public static void main(String[] args) {
       SpringApplication app = new SpringApplication(SpringBootCommandLineRunnerApplication.class);
       app.run(args);
    }


    //重写接口中的run的方法
    @Override
    public void run(String... args) throws Exception {
        //javafx中的类      这个类是javafx的类
        Application.launch(MainApp.class,args);
    }
}
